/**
 * Created by guany on 2017/1/9.
 */

var express = require('express');
var router = express.Router();
var dao = require("../dao/dao");

/* GET company list */
router.get('/selecOne', function(req, res, next) {
    dao.selecOne(req,res,next);
});
router.get('/visitorList', function(req, res, next) {
    dao.visitorList(req,res,next);
});
router.get('/attendancdList', function(req, res, next) {
    dao.attendancdList(req,res,next);
});
router.get('/getImg', function(req, res, next) {
    dao.getImg(req,res,next);
});
router.get('/deleteImg', function(req, res, next) {
    dao.deleteImg(req,res,next);
});

/* POST company list */
router.post('/save', function (req, res, next) {
    dao.save(req,res,next);
});

module.exports = router;